﻿using Client.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace Client.HelpTools
{
    public class SelectDataTemplateSelector : DataTemplateSelector
    {
        public DataTemplate HighTemplate { get; set; }

        public DataTemplate LowTemplate { get; set; }

        public override DataTemplate SelectTemplate(object item, DependencyObject container)
        {
            var stu = (MenuMode)item;
            if (stu.IsDetail)
                return HighTemplate;
            else
                return LowTemplate;
        }
    }
}
